package com.jungle.mvvm.sample.ui.home;

import com.jungle.mvvm.sample.api.OtherApi;
import com.jungle.mvvm.sample.bean.ArticleBean;
import com.jungle.mvvm.sample.bean.BannerBean;
import com.jungle.mvvm.sample.bean.ListBean;
import com.jungle.mvvm.sample.bean.SameBean;
import com.jungle.mvvm.sample.http.WanNetwork;

import java.util.List;

import io.reactivex.Observable;

/**
 * @ClassName OtherModel
 * @Description OtherModel
 * @Author Daniel
 * @Version V1.0.0
 */
public class OtherModel {

    public static Observable<ListBean<List<ArticleBean>>> getHomeArticle(int size) {
        return WanNetwork.getService(OtherApi.class)
                .getHomeArticle(size);
    }

    public static Observable<SameBean<List<BannerBean>>> getBannerList() {
        return WanNetwork.getService(OtherApi.class)
                .getBannerList();
    }
}
